package org.jeecg.modules.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.business.mapper.CaishuiBusinessMapper;
import org.jeecg.modules.business.service.ICaishuiBusinessService;
import org.jeecg.modules.business.vo.BusinessAccountVo;
import org.jeecg.modules.manage.entity.CaishuiBusiness;
import org.jeecg.modules.manage.entity.CaishuiBusinessBank;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Description: 商户基本信息表
 * @Author: yfkj
 * @Date:   2023-02-07
 * @Version: V1.0
 */
@Service
public class CaishuiBusinessServiceImpl extends ServiceImpl<CaishuiBusinessMapper, CaishuiBusiness> implements ICaishuiBusinessService {


    /**
     * 查询商户账户信息
     * @param businessId
     * @param companyId
     * @return
     */
    @Override
    public BusinessAccountVo queryAccount(String businessId, String companyId) {
        return this.baseMapper.queryAccount(businessId, companyId);
    }

    /**
     * 查询商户银行信息
     * @param params
     * @return
     */
    @Override
    public CaishuiBusinessBank queryBusinessBank(Map<String, String> params){
        return this.baseMapper.queryBusinessBank(params);
    };

}
